package com.happycat.social.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.happycat.social.dto.SocialVoiceRoomWheatSaveDto;
import com.happycat.social.entity.SocialVoiceRoomWheat;

/**
 * 房间麦位Service接口
 *
 * @author jsonbin
 * @date 2020-09-10
 */
public interface ISocialVoiceRoomWheatService extends IService<SocialVoiceRoomWheat> {

    /** 批量删除, 主持位不可删除, 当前麦位有人不可删除 */
    boolean del(String ids);

    /** 新增麦位 */
    SocialVoiceRoomWheat add(SocialVoiceRoomWheatSaveDto socialVoiceRoomMemberSaveDto);

    /** 锁定/解锁麦位 */
    SocialVoiceRoomWheat lockOrRelease(Long id, Integer forbid);

    /** 上麦/下麦 */
    SocialVoiceRoomWheat upOrDown(Long id, Long accountId, Integer upOrDown);
}
